package com.dshore.messagecenter.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class WebConfigurer extends WebMvcConfigurerAdapter {
	    
	@Autowired
    private LoginInterceptor loginInterceptor;

    /*@Override
    public void addInterceptors(InterceptorRegistry registry) {
    	 registry.addInterceptor(loginInterceptor)
    	 .addPathPatterns("/**")
    	 .excludePathPatterns("/user/toLogin","/static/**","/templates/**");
    	 super.addInterceptors(registry);
    }*/
    
    /*@Override
    public void addResourceHandlers(ResourceHandlerRegistry registry){
        registry.addResourceHandler("/js/**").addResourceLocations("classpath:/js/");
        registry.addResourceHandler("/css/**").addResourceLocations("classpath:/css/");
    }*/
    
}
